package com.ys.timer;

import com.ys.service.bi.BiClassifyModuleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;

@Controller
public class TimerBiClassifyModuleDaily {
	private static final Logger logger = LoggerFactory.getLogger(TimerBiClassifyModuleDaily.class);

	@Autowired
	private BiClassifyModuleService biClassifyModuleService;

	//每天00:00:01点刷取， bi分类模块业务流水分析汇总表
	@Scheduled(cron = "00 00 01 * * * ")
	public void countDaily() {
		try {
			logger.info("***********定时刷取业务流水分析汇总表***********");
			//刷取
			biClassifyModuleService.doCountByDaily();
			logger.info("***********定时刷取业务流水分析汇总表完成***********");
		}catch (Exception e){
			logger.error("定时刷取业务流水分析汇总表出错：",e.getMessage(),e);
		}
	}



	
}
